/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_terminal_info")
//@NamedQueries({@NamedQuery(name = "TTerminalInfo.findAll", query = "SELECT t FROM TTerminalInfo t"), @NamedQuery(name = "TTerminalInfo.findByTerminalId", query = "SELECT t FROM TTerminalInfo t WHERE t.terminalId = :terminalId"), @NamedQuery(name = "TTerminalInfo.findByComId", query = "SELECT t FROM TTerminalInfo t WHERE t.comId = :comId"), @NamedQuery(name = "TTerminalInfo.findByComKey", query = "SELECT t FROM TTerminalInfo t WHERE t.comKey = :comKey"), @NamedQuery(name = "TTerminalInfo.findByUserAgent", query = "SELECT t FROM TTerminalInfo t WHERE t.userAgent = :userAgent"), @NamedQuery(name = "TTerminalInfo.findByModel", query = "SELECT t FROM TTerminalInfo t WHERE t.model = :model"), @NamedQuery(name = "TTerminalInfo.findByImageWidth", query = "SELECT t FROM TTerminalInfo t WHERE t.imageWidth = :imageWidth"), @NamedQuery(name = "TTerminalInfo.findByImageHeight", query = "SELECT t FROM TTerminalInfo t WHERE t.imageHeight = :imageHeight"), @NamedQuery(name = "TTerminalInfo.findByImageFormat", query = "SELECT t FROM TTerminalInfo t WHERE t.imageFormat = :imageFormat"), @NamedQuery(name = "TTerminalInfo.findByAudioFormat", query = "SELECT t FROM TTerminalInfo t WHERE t.audioFormat = :audioFormat"), @NamedQuery(name = "TTerminalInfo.findByChordNum", query = "SELECT t FROM TTerminalInfo t WHERE t.chordNum = :chordNum"), @NamedQuery(name = "TTerminalInfo.findByVideoFormat", query = "SELECT t FROM TTerminalInfo t WHERE t.videoFormat = :videoFormat"), @NamedQuery(name = "TTerminalInfo.findByThemeFormat", query = "SELECT t FROM TTerminalInfo t WHERE t.themeFormat = :themeFormat"), @NamedQuery(name = "TTerminalInfo.findByThemeUaClass", query = "SELECT t FROM TTerminalInfo t WHERE t.themeUaClass = :themeUaClass"), @NamedQuery(name = "TTerminalInfo.findByUaClass", query = "SELECT t FROM TTerminalInfo t WHERE t.uaClass = :uaClass"), @NamedQuery(name = "TTerminalInfo.findByMmsClass", query = "SELECT t FROM TTerminalInfo t WHERE t.mmsClass = :mmsClass"), @NamedQuery(name = "TTerminalInfo.findByState", query = "SELECT t FROM TTerminalInfo t WHERE t.state = :state"), @NamedQuery(name = "TTerminalInfo.findByUpdTime", query = "SELECT t FROM TTerminalInfo t WHERE t.updTime = :updTime"), @NamedQuery(name = "TTerminalInfo.findByShortModel", query = "SELECT t FROM TTerminalInfo t WHERE t.shortModel = :shortModel")})
public class TTerminalInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "TERMINAL_ID")
    private Integer terminalId;
    @Column(name = "COM_ID")
    private Integer comId;
    @Column(name = "COM_KEY")
    private String comKey;
    @Column(name = "USER_AGENT")
    private String userAgent;
    @Column(name = "MODEL")
    private String model;
    @Column(name = "IMAGE_WIDTH")
    private String imageWidth;
    @Column(name = "IMAGE_HEIGHT")
    private String imageHeight;
    @Column(name = "IMAGE_FORMAT")
    private String imageFormat;
    @Column(name = "AUDIO_FORMAT")
    private String audioFormat;
    @Column(name = "CHORD_NUM")
    private String chordNum;
    @Column(name = "VIDEO_FORMAT")
    private String videoFormat;
    @Column(name = "THEME_FORMAT")
    private String themeFormat;
    @Column(name = "THEME_UA_CLASS")
    private String themeUaClass;
    @Column(name = "UA_CLASS")
    private String uaClass;
    @Column(name = "MMS_CLASS")
    private String mmsClass;
    @Column(name = "STATE")
    private Character state;
    @Column(name = "UPD_TIME")
    @Temporal(TemporalType.DATE)
    private Date updTime;
    @Column(name = "SHORT_MODEL")
    private String shortModel;

    public TTerminalInfo() {
    }

    public TTerminalInfo(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public Integer getTerminalId() {
        return terminalId;
    }

    public void setTerminalId(Integer terminalId) {
        this.terminalId = terminalId;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getComKey() {
        return comKey;
    }

    public void setComKey(String comKey) {
        this.comKey = comKey;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getImageWidth() {
        return imageWidth;
    }

    public void setImageWidth(String imageWidth) {
        this.imageWidth = imageWidth;
    }

    public String getImageHeight() {
        return imageHeight;
    }

    public void setImageHeight(String imageHeight) {
        this.imageHeight = imageHeight;
    }

    public String getImageFormat() {
        return imageFormat;
    }

    public void setImageFormat(String imageFormat) {
        this.imageFormat = imageFormat;
    }

    public String getAudioFormat() {
        return audioFormat;
    }

    public void setAudioFormat(String audioFormat) {
        this.audioFormat = audioFormat;
    }

    public String getChordNum() {
        return chordNum;
    }

    public void setChordNum(String chordNum) {
        this.chordNum = chordNum;
    }

    public String getVideoFormat() {
        return videoFormat;
    }

    public void setVideoFormat(String videoFormat) {
        this.videoFormat = videoFormat;
    }

    public String getThemeFormat() {
        return themeFormat;
    }

    public void setThemeFormat(String themeFormat) {
        this.themeFormat = themeFormat;
    }

    public String getThemeUaClass() {
        return themeUaClass;
    }

    public void setThemeUaClass(String themeUaClass) {
        this.themeUaClass = themeUaClass;
    }

    public String getUaClass() {
        return uaClass;
    }

    public void setUaClass(String uaClass) {
        this.uaClass = uaClass;
    }

    public String getMmsClass() {
        return mmsClass;
    }

    public void setMmsClass(String mmsClass) {
        this.mmsClass = mmsClass;
    }

    public Character getState() {
        return state;
    }

    public void setState(Character state) {
        this.state = state;
    }

    public Date getUpdTime() {
        return updTime;
    }

    public void setUpdTime(Date updTime) {
        this.updTime = updTime;
    }

    public String getShortModel() {
        return shortModel;
    }

    public void setShortModel(String shortModel) {
        this.shortModel = shortModel;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (terminalId != null ? terminalId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTerminalInfo)) {
            return false;
        }
        TTerminalInfo other = (TTerminalInfo) object;
        if ((this.terminalId == null && other.terminalId != null) || (this.terminalId != null && !this.terminalId.equals(other.terminalId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTerminalInfo[terminalId=" + terminalId + "]";
    }

}
